package com.mindainfo.groundwave.server.base.utils;

import com.mindainfo.groundwave.server.member.bean.SysMember;
import org.apache.shiro.SecurityUtils;

/**
 * Created by Administrator on 2017/8/10.
 */
public class SysUtil {

    /**
     * 获取当前登录的用户
     */
    public static SysMember currentMember(){

        SysMember member = (SysMember) SecurityUtils.getSubject()
                .getSession().getAttribute("member");
        return member;
    }
}
